package com.heima.controller;

import com.heima.pojo.dto.PagingQueryDTO;
import com.heima.pojo.vo.PagingVO;
import com.heima.pojo.vo.PolicyVO;
import com.heima.service.VmService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/vm-service/vm")
@Slf4j
public class VmController {
    @Autowired
    private VmService vmService;

    //设备搜索
    @RequestMapping("/search")
    public PagingVO  slectVm(@RequestBody PagingQueryDTO pagingQueryDTO){
        log.info("设备搜索{}",pagingQueryDTO);
        return vmService.slectVm(pagingQueryDTO);
    }
}

